var n = getApp();

Page({
    data: {
        info: {},
        mode: 0
    },
    onLoad: function(n) {
        n.mode && this.setData({
            mode: n.mode
        }), this.getData();
    },
    getData: function() {
        var o = this, t = n.getNetAddresss("plugin.new-retail.frontend.index.getSalesRecord");
        n._postNetWork({
            url: t,
            data: {
                id: this.options.id
            },
            success: function(n) {
                var t = n.data;
                1 == t.result ? o.setData({
                    info: t.data
                }) : wx.showToast({
                    title: t.msg,
                    duration: 1e3,
                    icon: "none"
                });
            },
            fail: function(n) {
                wx.hideLoading(), console.log(n.msg);
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});